package com.example.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Tela1 extends Activity implements OnClickListener {
	
	Button b;
	TextView t;
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.tela1);
		
		b = (Button) findViewById(R.tela1.btChamaTela);
		b.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v == b) {
			Intent i = new Intent(this,Tela2.class);
			startActivity(i);
		}
	}
}
